package com.example.sxproject.service;

import com.example.sxproject.pojo.FinancialProduct;
import com.example.sxproject.pojo.Payment;
import com.example.sxproject.pojo.SearchStr;

import java.util.List;

public interface PaymentService {


    List<Payment> selectAll();   //查找全部账单；

    List<Payment> selectByIdNumber(String idNumber);

    //多条件检索
    List<Payment> selectBySearchStr(SearchStr SearchStr);

    //添加：添加一个记录
    void addPayment(Payment payment);

    //更新：支付记录假删除
    void deletePayment(Payment payment);

    //查询：通过userId查询支付记录
    List<Payment> getPaymentsByUserId(Integer userId);

    void paymentMessageUpdate(Payment payment);

    void PaymentDl(Integer id);
}
